package com.ycy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.ycy.pojo.Employee;

@Mapper
public interface EmployeeDao {
	
	
	Employee login(@Param("nickname")String nickname, @Param("password")String password);

	Employee findit(String name);

	List<Employee> findBySection(String section);

	int update(@Param("employee")Employee employee);

	Employee find(int id);

	int add(@Param("employee")Employee employee);

	int start(int id);

	int stop(int id);

	int del(int id);

	List<Employee> findAll();

	List<Employee> findAdmin();

	int edit(@Param("employee")Employee employee);
	

}
